package com.yun.zf.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yun.zf.common.admin.dto.sys.SubStationDto;
import com.yun.zf.common.app.domain.ZfSubwayStation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 地铁站表 Mapper 接口
 * </p>
 *
 * @author cj
 * @since 2021-01-29
 */
@Mapper
public interface ZfSubwayStationMapper extends BaseMapper<ZfSubwayStation> {

    @Select("<script>" +
            " SELECT name stationName ,sort, poi_id from zf_subway_station WHERE subway_id=#{subwayId} " +
            "</script>")
    public List<SubStationDto> getStations(Long subwayId);
}
